package com.gulimall.member.controller;


import com.gulimall.common.core.domain.Result;
import com.gulimall.member.domain.entity.Member;
import com.gulimall.member.service.IMemberService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 会员 前端控制器
 * </p>
 *
 * @author 坤哥
 * @since 2025-08-27
 */
@RestController
@RequestMapping("/member")
public class MemberController {
    @Resource
    private IMemberService memberService;

    /**
     * 获取用户积分
     */
    @GetMapping("/getMemberIntegration")
    public Result<Integer> getMemberIntegration(){
        Member member = memberService.getById(1);
        return Result.ok(member.getIntegration());
    }
}
